﻿@using Ext.Net;
@using Ext.Net.MVC;

@model MySoft.Learning.Ext.Net.MVC.Models.LoginModel
@{
    ViewBag.Title = "Login";
    var X = Html.X();
}
@(Html.X().ResourceManager())

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

<section id="loginForm">
    <h2>登录。</h2>
    @using (Html.BeginForm())
    {
        @(X.Viewport().Items(
        Html.X().FormPanel()
        .ID("frmMain")
        .Title("登录")
        .Width(480)
        .Height(320)
        .Frame(true)
        .Layout(LayoutType.Anchor)
        .Items(
        Html.X().FieldContainer().Items(
        X.TextField()
                    .ID("txtUserCode")
                    .FieldLabel("用户名"),
        X.TextField()
                    .ID("txtPassword")
                    .FieldLabel("密码")
                    .InputType(Ext.Net.InputType.Password)
        )
        )
        ))
    };
</section>

